﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace GdHotel.Data
{
    [MetadataType(typeof (NewsMetaData))]
    public partial class News
    {
    }

    public class NewsMetaData
    {
        [Display(Name = "Заголовок")]
        public Object Title { get; set; }

        [AllowHtml]
        [DataType(DataType.MultilineText)]
        [Display(Name = "Текст")]
        public Object Text { get; set; }

        [DataType(DataType.MultilineText)]
        [Display(Name = "Короткий Текст")]
        public Object ShortText { get; set; }

        [Display(Name = "Дата публикации")]
        public Object PublicationDate { get; set; }

        [Display(Name = "Опубликована")]
        public Object Publish { get; set; }

        [Display(Name = "Картинка")]
        public Object PicturePath { get; set; }

        [Display(Name = "Уменьшенная картинка")]
        public Object ThumbnailPath { get; set; }
    }
}
